using System;
using System.Collections.Generic;
using System.Text;

namespace Lu62Viewer
{
    public class MyFieldError
    {
        private int m_progressivo;
        private string m_fieldA = string.Empty;
        private string m_fieldB = string.Empty;
        private string m_SegmentAName = string.Empty;
        private string m_segmentBName = string.Empty;

        public string SegmentAName
        {
            get { return m_SegmentAName; }
            set { m_SegmentAName = value; }
        }        

        public string SegmentBName
        {
            get { return m_segmentBName; }
            set { m_segmentBName = value; }
        }

        public int Progressivo
        {
            get { return m_progressivo; }
            set { m_progressivo = value; }
        }        

        public string FieldA
        {
            get { return m_fieldA; }
            set { m_fieldA = value; }
        }        

        public string FieldB
        {
            get { return m_fieldB; }
            set { m_fieldB = value; }
        }

        public override string ToString()
        {
            return string.Format("Progr. {0}: Segment {1} Value {2} -> Segment {3} Value {4}", new string[] { (Progressivo + 1).ToString(), SegmentAName, FieldA, SegmentBName, FieldB });
        }
    }
}
